rem s0995p10:59 do test of just built whatever
:* need to add options to make and view html report when done
:* need a clean testdir pause at the end if there are errors

@echo off
set EUTEST=eui -BATCH ..\source\eutest.ex 
set EUTEST=c:\c\LANG\Eu\ver\Euwat400\bin\eutest.exe
set EUTEST=eui  -eudir %EUDIR%  -BATCH %EUDIR%\source\eutest.ex 

set EUVISTA=1
set EUCONS=1
set TEMP=c:\temp
set TMP=c:\tmp
PYTHONPATH=C:\C\PY\PYTHON24;C:\C\PY\PYTHON24\Lib\site-packages;C:\c\py\Tools\misc
SET INCLUDE=C:\c\OWATCOM15\H;C:\c\OWATCOM15\H\NT
SET LIBS=c:\c\OWATCOM15\lib386\
SET WATCOM=C:\c\OWATCOM15
REM ~ set CC=
set QTDIR=C:\C\C\make_all\qt
PATH=%QTDIR%\BIN;%EUDIR%\BIN;C:\c\OWATCOM15\BINNT;%path%;C:\c\OWATCOM15\BINW

set EUINC=C:\c\LANG\Euphoria\orelse;c:\c\LANG\Eu\aplication\wgetter\claro\clarowrap\includes\;c:\c\LANG\Eu\GUI\;c:\rootemp\euphoria\win32libex\Include\
set EUDIR=c:\c\LANG\Eu\ver\Euwat400\

rem maybe should translate eutest first?
cd tests

REM ~ -process-log] [-html]]\n" &-log]\n" &	"  [-verbose]
		
rem eutest -exe "eui ..\source\eu.ex"
@echo eutest

rem interp and translate  think there is no just trans
REM ~ eui -BATCH ..\source\eutest.ex -exe source\eui   -i ..\include  -cc gcc  -ec ..\source\euc.exe -lib   ..\source\eu.a

rem just interpreted
set TRANS=
rem translate too
set TRANS=-cc wat  -ec %EUDIR%\source\euc.exe -i %EUDIR%\include -i ..\qt  -lib  %EUDIR%\source\eu.lib
set TRANS=-cc wat  -ec %EUDIR%\bake\euc.exe -i %EUDIR%\include -i ..\qt  -lib   %EUDIR%\bake\eu.lib
set TRANS=-cc wat  -ec %EUDIR%\bin\euc.exe -i %EUDIR%\include -i ..\qt    -lib   %EUDIR%\bin\eu.lib

rem need to set log then run eutest again to process it I think

REM ~ %EUTEST%  -log   -exe ..\source\eui   -i ..\include  %TRANS%
%EUTEST%  -log   -exe %EUDIR%\bin\eui  -i %EUDIR%\include -i ..\qt  %TRANS%
REM ~ eutest -eudir %EUDIR% not understood 

rem control test with existing eui  would be nice if  could be quiet would be faster
REM ~ %EUTEST%   -log  -i ..\include 

rem  to stdout
%EUTEST%  -i ..\qt  -process-log -html >..\testsWAT.html


REM ~ chg to using a varb for source or bake dir  at the top


